package up_down_share.viewcontroller;

import up_down_share.updaonwshare.v01.R;


import android.content.Intent;
import android.view.View;
import android.widget.*;
import android.app.Activity;
import android.os.Bundle;

public class CreateUserActivity extends Activity {

	// --------------------------------------------------
	// ----- constants -----
	// --------------------------------------------------

	// --------------------------------------------------
	// ----- properties -----
	// --------------------------------------------------
	private Button toCoverView = null;

	// --------------------------------------------------
	// ----- extends -----
	// --------------------------------------------------

	@Override
	protected void onCreate(final Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.create_user_view);

		toCoverView = (Button) findViewById(R.id.To_CoverView_button);
		if (toCoverView != null) {
			System.out.println("toCoverView button is not null");
			toCoverView.setOnClickListener(new View.OnClickListener() {

				@Override
				public void onClick(View v) {
					// TODO Auto-generated method stub
					// startActivity(toCoverView("coverView"));
					//startActivity(toCoverView("coverView2"));
				     //startActivity(toCoverView("coverView2"));
					 startActivity(toCoverView("simple"));
					
				
				}
			});
		} else {
			System.out.println("toCoverView button is  null");
		}

	}

	@Override
	protected void onStart() {
		super.onStart();
	}

	@Override
	protected void onResume() {
		super.onResume();

	}

	@Override
	protected void onStop() {
		super.onStop();
	}

	@Override
	protected void onDestroy() {
		super.onDestroy();
	}

	// --------------------------------------------------
	// ----- functions -----
	// --------------------------------------------------

	private Intent toCoverView(String action) {

		return new Intent(action);
	}
}
